﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	FormulaireInscription
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Newsletter du laboratoire Microsoft</h2>

    <%= Html.ValidationSummary("Veuillez renseigner correctement tous les champs.") %>
    
    <% using (Html.BeginForm("Inscription", "Newsletter",FormMethod.Get))
       {%>

        <fieldset>
            <legend>Abonnement à la newsletter</legend>
            <p>
                <label for="Token">Token:</label>
                <%= Html.TextBox("Token", ViewData["token"], (Dictionary<string, object>)ViewData["InputProperties"])%>
                <%= Html.ValidationMessage("Token", "* Le token est un nombre.")%>
            </p>
            <p>
                <label for="Mail">Mail:</label>
                <%= Html.TextBox("Mail", ViewData["mail"], (Dictionary<string, object>)ViewData["InputProperties"])%>
            </p>
            <p>
                <label for="inscription">Souhaitez-vous recevoir la newsletter?</label>
                <%= Html.CheckBox("inscription", true)%>
                
            </p>
            <p>
                <input type="submit" value="Valider" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

